using MediatR;
using TerritoryGame.Domain.ValueObjects;

namespace TerritoryGame.Application.Commands;

public record EndGameCommand : IRequest<EndGameResult>
{
    public Guid RoomId { get; init; }
}

public record EndGameResult
{
    public bool Success { get; init; }
    public string? ErrorMessage { get; init; }
    public List<PlayerInfo> Players { get; init; } = new();
    public PlayerInfo? Winner { get; init; }
}
